#ifndef	__SPI_ADC_H__
#define	__SPI_ADC_H_

#define	SS		PB0
#define	SCK		PB1
#define	MOSI	PB2
#define	MISO	PB3

#define	MASTER	1
#define	SLAVE	2

extern volatile int	req_sw;
extern volatile int	spi_mode;
extern volatile unsigned	int	my_adc, remote_adc;

extern void	SW_init(void);
extern void	SPI_init(void);
extern void	master_get_slave_ADC(void);

#endif
